/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.shailan.util.fem.element;

import com.shailan.util.fem.node.Node;
import com.shailan.util.fem.*;

import javax.media.opengl.*;
/**
 *
 * @author Bahadir SAYLAN
 */
public class Frame_3D extends Element {
    private Node iNode,jNode;
    private float length;
    private float E,A;

    
    
    public Frame_3D(float E,float A,Node iNode,Node jNode){
        this.E=E;
        this.A=A;
        setINode(iNode);
        setJNode(jNode);
    }

    public void draw(GL gl){

        gl.glVertex3f(iNode.getX(), iNode.getY(), iNode.getZ());
        gl.glVertex3f(jNode.getX(), jNode.getY(), jNode.getZ());
        
    }
    /**
     * @return the iNode
     */
    public Node getINode() {
        return iNode;
    }

    /**
     * @param iNode the iNode to set
     */
    public void setINode(Node iNode) {
        this.iNode = iNode;
    }

    /**
     * @return the jNode
     */
    public Node getJNode() {
        return jNode;
    }

    /**
     * @param jNode the jNode to set
     */
    public void setJNode(Node jNode) {
        this.jNode = jNode;
    }

    /**
     * @return the length
     */
    public float getLength() {
        return length;
    }

    /**
     * @return the E
     */
    public float getE() {
        return E;
    }

    /**
     * @param E the E to set
     */
    public void setE(float E) {
        this.E = E;
    }

    /**
     * @return the A
     */
    public float getA() {
        return A;
    }

    /**
     * @param A the A to set
     */
    public void setA(float A) {
        this.A = A;
    }
}
